package org.vshe.improve.spring.prospring3.ch5.profile;

import org.springframework.context.support.GenericXmlApplicationContext;

public class ProfileDemo {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		GenericXmlApplicationContext context = new GenericXmlApplicationContext("ch5/profile/*-config.xml");
		context.getEnvironment().setActiveProfiles("highschool");
		context.registerShutdownHook();
		
		FoodProviderService service = context.getBean("foodProviderService", FoodProviderService.class);
		System.out.println("RESULT: " + service.provideLaunchSet());

	}

}
